/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.mes.quality.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 质量分析-总成物料组成（总成生成过程中使用零件信息）实体类
 *
 * @author liuchao
 * @since 2023-02-20
 */
@Data
public class AnalysisMaterialCompositionDto {

    private static final long serialVersionUID = 1L;

    /**
     * 上料时间
     */
    @ApiModelProperty(value = "上料时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonProperty(value = "load_time")
    private Date loadTime;

    /**
     * 零件物料号
     */
    @ApiModelProperty(value = "零件物料号")
	@JsonProperty(value = "part_no")
	private String partNo;
    /**
     * 精追条码
     */
    @ApiModelProperty(value = "精追条码")
	@JsonProperty(value = "chaser_code")
    private String chaserCode;
    /**
     * 批追条码
     */
    @ApiModelProperty(value = "批追条码")
	@JsonProperty(value = "batch_trace_code")
    private String batchTraceCode;

    /**
     * 零件物料名称
     */
    @ApiModelProperty(value = "零件物料名称")
	@JsonProperty(value = "part_name")
    private String partName;

    @ApiModelProperty(value = "数量")
	@JsonProperty(value = "count")
    private String quantity;

}
